package com.ztom.test.bean

import com.ztom.beans.factory.support.lifecycle.DisposableBean
import com.ztom.beans.factory.support.lifecycle.InitializingBean

/**
 * @author ZhangTao
 */
data class Car(
    var brand: String? = null
) : InitializingBean, DisposableBean {

    fun init() {
        println("Car init method invoke...")
    }

    override fun destroy() {
        println("Car destroy method invoke... 同名方法只执行一次")
    }

    override fun afterPropertiesSet() {
        println("Car InitializingBean afterPropertiesSet invoke...")
    }
}